package com.sskj.award.presenter;

import com.lzy.okgo.model.Response;
import com.sskj.award.bean.AirDropBean;
import com.sskj.award.ui.fragment.DetailsAssetsFragment;
import com.sskj.common.base.HttpData;
import com.sskj.lib.http.JsonCallBack;

/**
 * @ClassName: DetailsAssetsFragmentPresenter
 * @Description: java类作用描述:
 * @Author: yuanlin
 * @Date: 2019/7/12 15:46
 */
public class DetailsAssetsFragmentPresenter extends BasePresenter<DetailsAssetsFragment> {
    public void getAirData() {
        httpService.getAirData()
                .tag(this)
                .execute(new JsonCallBack<HttpData<AirDropBean>>(this) {
                    @Override
                    public void onSuccess(Response<HttpData<AirDropBean>> response) {
                        AirDropBean data = response.body().getData();
                        mView.getAirDataSuccess(data);
                    }
                });
    }
}
